package demo3;

//抽象类
public abstract class Package {
    private int rate;

    public Package() {
    }

    public Package(int rate) {
        setRate(rate);
    }

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }

    public abstract void showRate();
}
